package com.andy.main.module1;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.andy.main.apt_core.ANRouter;
import com.andy.main.router_annotation.Route;

import androidx.annotation.Nullable;

/**
 * @version V1.0
 * @描述:
 * @Company:
 * @auth: Created by AN .
 * @time: 2020-03-13 16:49
 * @des
 */
@Route(path = "/module1/test")
public class Module1Activity extends Activity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.layout_module1);

    }
    public void mainJump(View view) {
        ANRouter.getInstance().build("/main/test").navigation();
    }

    public void module2Jump(View view) {
        Intent intent= null;
        try {
            intent = new Intent(Module1Activity.this, Class.forName("com.andy.main.module2.Module2Activity"));
            startActivity(intent);
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }

    }


}
